#include<iostream>
#include<deque>

namespace MyS{
  template<class T,class Container = std::deque<T>>
    class stack
    {
    public:
      void push(T date)
      {
        _con.push_back(date);
      }
      void pop()
      {
        _con.pop_back();
      }
      T& top()
      {
        return *(--_con.end());
      }
      bool empty()
      {
        return _con.empty();
      }
      private:
        Container _con;
    };
}
